
    <form class="checkoutform" action="{:U('update')}" method="post">
    <input name="id" type="hidden" value="{$info.id}" />
     
      
      <div class="panel panel-success">
      <div class="panel-heading">
        <h3 class="panel-title">收货人信息</h3>
      </div>
      <div class="panel-body">
         <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right">收货人</td>
        <td><span style="height:400px; width:100%;">{$info.yourname}</span></td>
      </tr>
      <tr>
        <td align="right"> 联系电话</td>
        <td><span style="height:400px; width:100%;">{$info.tel}</span></td>
      </tr>
      
      <tr>
        <td align="right">配送地址</td>
        <td><span style="height:400px; width:100%;"><volist name="region" id="vo">
        {$vo.region_name}&nbsp;
        
        </volist>{$info.address}</span></td>
      </tr>
      
        <tr>
        <td align="right">管理员备注</td>
        <td>
        <form action="{:U('update')}" method="post">
        <textarea name="remark" style="height:100px; width:100%;">{$info.remark}</textarea>
        <br>

        <button class="btn btn-success" type="submit">保存</button>
 </form>       
        
        </td>
      </tr>
      
        
      </table>
      </div>
    </div>
      
      
      <div class="panel panel-success">
      <div class="panel-heading">
        <h3 class="panel-title">订单商品</h3>
      </div>
      <div class="panel-body">
        <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <th>名称</th>
            <th>图片</th>
            <th>售后</th>
            <th>单价</th>
            <th>数量</th>
            
            <th>供货商</th>
            
            <th>小计</th>
          </tr>
          
          <volist name="list" id="vo"> 
          <tr>
            <td align="center">{$vo.title}
            <p>
            
            <?php if(!empty($vo['attrmes'][0])){?>
             <span style="color:rgba(203,189,190,1.00)">规格:&nbsp;&nbsp;</span>
             <?php foreach($vo['attrmes'] as $vos){?>
              <span><?php echo $vos ?>&nbsp;&nbsp;</span>
            <?php }?>
            <?php }?></p>
            
            
            
            <p> <eq name="vo['shippingstatus']" value="0"><span style="color:#f00;">未发货</span><else/><span style="color:#1FD728; font-weight:bold;">已发货</span></eq></p>
            
            
            </td>
            <td align="center"><img src="{:getThumbPath($vo['img_url'])}" width="100" /></td>
            <td align="center">
            <eq name="vo['thtype']" value="1">退货</eq><eq name="vo['thstatus']" value="4">【已经完成】</eq>
            <eq name="vo['thtype']" value="2">换货</eq>
            </td>
            <td align="center">{$vo.price}</td>
            <td align="center">{$vo.num}</td>
            
            
            <td align="center">
                <select class="form-control" onChange="changeSuppier(this.value, {$vo.sale_id});">
                <volist name="suppier" id="svo">
                    <option value="{$svo.id}" <if condition="$svo['id'] eq $vo['supplierid']">selected="selected"</if>>{$svo.susername}</option>
                </volist>
                </select>
            </td>
            
            <td align="center">{$vo.total}</td>
          </tr>
          </volist>
          
        </table>
      </div>
    </div>
      
      
    </form>
  
<script>
    //改变供货商
	function changeSuppier(supplierid, saleid){
		$.post('{:U('changeSuppier')}',{supplierid:supplierid, saleid:saleid},function(data){
			if(data.status == 1){
				$.ThinkBox.success(data.info,{'delayClose':100});
			}
		},'json');
	}
</script>
